package com.starrk.myblog.foreground.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Starrk
 * @since 2018-03-25
 */
@TableName("label_blog")
public class LabelBlog extends Model<LabelBlog> {

    private static final long serialVersionUID = 1L;

    private Long id;
    @TableField("blog_info_id")
    private Long blogInfoId;
    @TableField("label_id")
    private Long labelId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBlogInfoId() {
        return blogInfoId;
    }

    public void setBlogInfoId(Long blogInfoId) {
        this.blogInfoId = blogInfoId;
    }

    public Long getLabelId() {
        return labelId;
    }

    public void setLabelId(Long labelId) {
        this.labelId = labelId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "LabelBlog{" +
        ", id=" + id +
        ", blogInfoId=" + blogInfoId +
        ", labelId=" + labelId +
        "}";
    }
}
